
const middleware = function(context) {

    return Promise.resolve(
        fn1(context,function next() {

            return Promise.resolve(
                fn2(context,function next() {
                    
                })
            )
        })
    )
}